projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c506dfe
)
longpress: Ensure check() happens after cancel()
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 8 Apr 2014 19:11:27 +0000
(21:11 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Fri, 23 May 2014 17:54:26 +0000
(19:54 +0200)
And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.
gtk/gtkgesturelongpress.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgesturelongpress.c
b/gtk/gtkgesturelongpress.c
index c833cead8be190702ca13606dda76208ed5e2b20..79805a567cf85301271add9d6084641d7127138d 100644
(file)
--- a/
gtk/gtkgesturelongpress.c
+++ b/
gtk/gtkgesturelongpress.c
@@
-62,7
+62,7
@@
gtk_gesture_long_press_check (GtkGesture *gesture)
if (priv->cancelled)
return FALSE;
- return
gtk_gesture_is_active
(gesture);
+ return
GTK_GESTURE_CLASS (gtk_gesture_long_press_parent_class)->check
(gesture);
}
static gboolean
@@
-136,6
+136,7
@@
gtk_gesture_long_press_update (GtkGesture *gesture,
}
priv->cancelled = TRUE;
+ gtk_gesture_check (gesture);
}
}